﻿#region namespaces

using System;
using System.Data;
using System.Web;
using System.Web.Security;

using SLIITPro.Data.Entity;
using SLIITPro.Data.Extension;
using SLIITPro.Core;

#endregion

namespace SLIITPro
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString.ToString() == "logoff")
            {
                FormsAuthentication.SignOut();
                Session.RemoveAll();
                if (Request.UrlReferrer != null && Request.UrlReferrer != Request.Url)
                {
                    Response.Redirect(Request.UrlReferrer.ToString(), true);
                }
                else
                {
                    Response.Redirect(CoreSettings.RelativeWebRoot);
                }

            }
        }
    }
}
